package com.market.manager;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.market.domain.Role;
import com.market.domain.User;

public interface RoleManager extends GenericManager<Role, Long> {
	/**
	 * load all Users are associated with role
	 * @param user
	 * @return
	 */
	@Transactional(propagation = Propagation.REQUIRED,readOnly=true)
	public List<User> fetchUsers(Role role);
}
